package cn.stronglink.assetmanage.business.check.view;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.wx.roundimageview.RoundImageView;

import java.io.IOException;

import butterknife.BindView;
import cn.stronglink.assetmanage.R;
import cn.stronglink.assetmanage.business.check.model.CheckModel;
import cn.stronglink.assetmanage.business.check.presenter.CheckPresenter;
import cn.stronglink.assetmanage.dao.DaoManager;
import cn.stronglink.assetmanage.dao.SyncTypesDao;
import cn.stronglink.assetmanage.entity.SyncTypes;
import cn.stronglink.assetmanage.index.base.BaseChildFragment;
import cn.stronglink.assetmanage.utils.Constants;
import cn.stronglink.assetmanage.utils.ToastUtil;
import okhttp3.Call;
import okhttp3.Response;

/**
 * Created by Tgb on 2018/6/9.
 * 验收入库--入口fragment
 */

public class CheckFragment extends BaseChildFragment {
    private CheckView checkView;
    private CheckModel checkModel;


    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        rootView = inflater.inflate(R.layout.fragment_check, container, false);
        checkView = new CheckView(this, rootView);
        initViewAndData(rootView);
        return rootView;
    }


    private void initViewAndData(View view) {
        try {
            checkView = new CheckView(this, view);
            checkModel = new CheckModel();
        } catch (Exception e) {

        }

    }

    @Override
    protected void onFragmentVisibleChange(boolean isVisible) {
    }


    @Override
    public void onDestroyView() {
        super.onDestroyView();
    }

}
